import yaml
import logging
import yagmail

def Common():
    logging.basicConfig(filename='./case/ggg.txt',format='%(funcName)s->%(created)f->%(message)s',level=logging.DEBUG,filemode='w+')

def email(qq):
    d=yagmail.SMTP(host='smtp.qq.com',user='2314336117@qq.com',password='ixpbgkkezjwodhif')
    d.send(to='2314336117@qq.com',subject='月考11',contents='升班',attachments=qq)

def canshu(cc):
    with open(cc,'r',encoding='utf-8') as e:
        return yaml.safe_load(e)